package cn.com.headfree.entity.isc;

import java.io.Serializable;

/**  
 * @Title  RestServerResult.java   
 * @Package cn.com.headfree.entity.isc   
 * @Description TODO
 * @author yangwang 
 * @date  2020年8月4日 下午5:42:17   
 */
public class RestServerResult implements Serializable{
	private static final long serialVersionUID = -3818243560898320822L;
	  private boolean success;
	  private Object data;
	  private String message;

	  public RestServerResult(boolean success, Object data, String message)
	  {
	    this.success = success;
	    this.data = data;
	    this.message = message;
	  }

	  public RestServerResult()
	  {
	  }

	  public Object getData()
	  {
	    return this.data;
	  }

	  public void setData(Object data)
	  {
	    this.data = data;
	  }

	  public String getMessage()
	  {
	    return this.message;
	  }

	  public void setMessage(String message)
	  {
	    this.message = message;
	  }

	  public boolean getSuccess()
	  {
	    return this.success;
	  }

	  public void setSuccess(boolean success)
	  {
	    this.success = success;
	  }

	  public static RestServerResult putRestServerResult(boolean success, Object data, String errorMsg)
	  {
	    return new RestServerResult(success, data, errorMsg);
	  }
}
